let app = getApp()
let eo = require('../../common/lib/mobx').extendObservable;

let store = function () {
	eo(this, {
		info: "",
	});
	this.get_auth_info = function () {
		return {
			'state': this.user_info.state,
			'user_state': this.user_info.user_state,
			'auth_type': 'wechat',
			'auth_item': 'wechat_openid',
			'auth_id': this.user_info.wechat_openid,
			'auth_nick_name': this.user_info.wechat_nickname,
			'nick_name': this.user_info.nick_name,
			'house_num': this.user_info.house_num,
			'dong': this.user_info.dong,
			'men': this.user_info.men,
			'hao': this.user_info.hao,
		}
	}
}

module.exports = {
	store: store
}

// export default common_store
